import { DefaultEnum } from "./common/enum/DefaultEnum";

/**
 * 初始化项目用到的数据
 */
export const INIT_CONSTANTS = {
    users: {
        // 账号
        usernames: ['admin', 'ayan', 'test', 'user'],
        // 姓名
        names: ['管理员', '阿燕店长', '测试员工', '用户']
    },
    roles: {
        names: ["管理员", "系统人员", "店长", "员工"]
    },
    menus: [
        [
            {menuId: 1, parentId: null, orderNum: 0, menuName: "首页", url: '/home'},
        ],
        [
            {menuId: 2, parentId: null, orderNum: 0, menuName: "商品管理", url: "/goods",},
            {menuId: 3, parentId: 2, orderNum: 0, menuName: "商品首页", url: "/goods/goodsHome",},
            {menuId: 4, parentId: 2, orderNum: 0, menuName: "商品列表", url: "/goods/goodsList"},
            {menuId: 5, parentId: 2, orderNum: 0, menuName: "商品价格", url: "/goods/goodsPrice"},
            {menuId: 6, parentId: 2, orderNum: 0, menuName: "种类管理", url: "/goods/goodsType"},
        ],
        [
            {menuId: 7, parentId: null, orderNum: 0, menuName: "库存管理", url: "/stock"},
            {menuId: 8, parentId: 7, orderNum: 0, menuName: "库存记录", url: "/stock/stockRecord"},
            {menuId: 9, parentId: 7, orderNum: 0, menuName: "库存列表", url: "/stock/stockList"},
            {menuId: 10, parentId: 7, orderNum: 0, menuName: "库存单位", url: "/stock/stockUnit"},
        ],
        [
            {menuId: 11, parentId: null, orderNum: 0, menuName: "订单管理", url: "/order"},
            {menuId: 12, parentId: 11, orderNum: 0, menuName: "订单列表", url: "/order/orderList"},
        ],
        [
            {menuId: 13, parentId: null, orderNum: 0, menuName: "系统设置", url: "/system"},
            {menuId: 14, parentId: 13, orderNum: 0, menuName: "用户列表", url: "/system/userList"},
            {menuId: 15, parentId: 13, orderNum: 0, menuName: "角色列表", url: "/system/roleList"},
        ]
    ],
    unit: {
        list: [
            {unitId: 1, unit: "瓶", count: 1, isDefault: DefaultEnum.DEFAULT},
            {unitId: 2, unit: "罐", count: 1, isDefault: DefaultEnum.DEFAULT},
            {unitId: 3, unit: "打", count: 12, isDefault: DefaultEnum.DEFAULT},
            {unitId: 4, unit: "件", count: 18, isDefault: DefaultEnum.DEFAULT},
            {unitId: 5, unit: "箱", count: 24, isDefault: DefaultEnum.DEFAULT},
        ]
    },
    type: {
        list: [
            {typeId: 1, typeName: "酒", isDefault: DefaultEnum.DEFAULT},
            {typeId: 2, typeName: "饮料", isDefault: DefaultEnum.DEFAULT},
            {typeId: 3, typeName: "冷饮", isDefault: DefaultEnum.DEFAULT},
            {typeId: 4, typeName: "热饮", isDefault: DefaultEnum.DEFAULT},
            {typeId: 5, typeName: "奶茶", isDefault: DefaultEnum.DEFAULT},
            {typeId: 6, typeName: "牛奶", isDefault: DefaultEnum.DEFAULT},
            {typeId: 7, typeName: "其他", isDefault: DefaultEnum.DEFAULT},
        ]
    }
}
